package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FormalitiesMapper;
import com.ruoyi.system.domain.Formalities;
import com.ruoyi.system.service.IFormalitiesService;

/**
 * 手续Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-04-29
 */
@Service
public class FormalitiesServiceImpl implements IFormalitiesService 
{
    @Autowired
    private FormalitiesMapper formalitiesMapper;

    /**
     * 查询手续
     * 
     * @param id 手续ID
     * @return 手续
     */
    @Override
    public Formalities selectFormalitiesById(Long id)
    {
        return formalitiesMapper.selectFormalitiesById(id);
    }

    /**
     * 查询手续列表
     * 
     * @param formalities 手续
     * @return 手续
     */
    @Override
    public List<Formalities> selectFormalitiesList(Formalities formalities)
    {
        return formalitiesMapper.selectFormalitiesList(formalities);
    }

    /**
     * 新增手续
     * 
     * @param formalities 手续
     * @return 结果
     */
    @Override
    public int insertFormalities(Formalities formalities)
    {
        return formalitiesMapper.insertFormalities(formalities);
    }

    /**
     * 修改手续
     * 
     * @param formalities 手续
     * @return 结果
     */
    @Override
    public int updateFormalities(Formalities formalities)
    {
        return formalitiesMapper.updateFormalities(formalities);
    }

    /**
     * 批量删除手续
     * 
     * @param ids 需要删除的手续ID
     * @return 结果
     */
    @Override
    public int deleteFormalitiesByIds(Long[] ids)
    {
        return formalitiesMapper.deleteFormalitiesByIds(ids);
    }

    /**
     * 删除手续信息
     * 
     * @param id 手续ID
     * @return 结果
     */
    @Override
    public int deleteFormalitiesById(Long id)
    {
        return formalitiesMapper.deleteFormalitiesById(id);
    }
}
